$package("boc.runtime");
$import("boc.ajax.AjaxProxy");
boc.runtime.SysTimeManager = SysTimeManager;
$stm = SysTimeManager.prototype;
function SysTimeManager(){
	this.system = "";
	this.year = "";
	this.month = "";
	this.day = "";
	this.hour = "";
	this.minute = "";
	this.second = "";
	this.week = "";
}


$stm.init = function (){
	var gcTime = new boc.ajax.AjaxProxy();	
	gcTime.invoke("PT_PUBLIC.PW_PT_GET_DATE",false,"oracle",0);
	this.system = gcTime.getString("PC_SYSDATE");
	this.year = gcTime.getString("PC_YEAR");
	this.month = gcTime.getString("PC_MONTH");
	this.day = gcTime.getString("PC_DAY");
	this.hour = gcTime.getString("PC_HOUR");
	this.minute = gcTime.getString("PC_MINUTE");
	this.second = gcTime.getString("PC_SECOND");
	this.week = gcTime.getString("PC_XQ");
}